//
//  CBar.h
//  beast_tamer
//
//  Created by chiawei.tseng on 13/2/7.
//
//

#ifndef beast_tamer_CBar_h
#define beast_tamer_CBar_h

#include "CBaseUI.h"

class CObject;
class CBar : public CBaseUI
{
public:
    
    enum BARTYPE
    {
        HP_BAR_TYPE = 0,
    };
    
    static CBar* CreateBar(const char *spName , const fPoint &point ,CObject* Master ,BARTYPE BarType);
    
    CBar();
    
    virtual ~CBar();
    
    virtual void InitWithData(const fPoint &point ,CObject* Master ,BARTYPE BarType);
    
    virtual bool init();
    
    virtual void update();
    
private:
    
    CObject*    m_Master;
    BARTYPE     m_BarType;
};


#endif
